package com.qf.agro.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.agro.pojo.SysRole;
import com.qf.agro.pojo.SysUser;

import java.util.List;

/**
 * ProjectName: smart-agriculture-parent
 * ClassName: SysRoleService
 * Author: chenyaosen
 * Date: 2023/7/3 11:54
 * Description:
 */
public interface SysRoleService {

    Page<SysRole> findPage(Integer pageNum, Integer pageSize, String name);

    void save(SysRole sysRole);

    void update(SysRole sysRole);

    void delete(Long id);

    List<SysRole> findList();

    List<Long> findUserRole(Long userId);

    void updateUserRole(Long userId,List<Long> roleIds);
}
